package com.youlai.eng.repository;

import com.youlai.eng.entity.EngItemEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface EngItemRepository extends JpaRepository<EngItemEntity,Long>, JpaSpecificationExecutor<EngItemEntity> {
    EngItemEntity findTopByItemNoAndDeleted(@Param("itemNo") String itemNo, @Param("deleted") Integer deleted);
}
